package com.doujiao.core.auth.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 管理员组权限实体类
 *
 * @author wuyunbin
 * @since 2025-05-24
 */
@Data
@TableName("admin_group_permission")
@Schema(description = "管理员组权限")
public class AdminGroupPermission {

    @Schema(description = "ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "管理员组ID")
    private Long groupId;

    @Schema(description = "权限标识")
    private String permission;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(description = "创建者ID")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @Schema(description = "更新者ID")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    @Schema(description = "是否删除")
    @TableLogic
    private Boolean isDeleted;
}
